import loading from './loading.vue';
const _loading = {};
_loading.install = function (Vue) {

    const LoadingConstructor = Vue.extend(loading);
    const comp = new LoadingConstructor();

    comp.$mount(document.createElement('div'));

    document.body.appendChild(comp.$el);

    Vue.prototype.$loading = comp;
    Vue.prototype.$showLoading = comp.showLoading;
    Vue.prototype.$hideLoading = comp.hideLoading;
    Vue.component('Loading', loading);
};
export default _loading;